import request from '../request'

//我的积分
export const getMyIntegral = () => request.globalRequest(`/aos/distribute/info/getMyScore`, 'GET', {})

// 积分商品列表
export const getIntegralGoodsList = params => request.globalRequest(`/aos/api/integralCommodity/list`, 'GET', {
    params: params
})

// 积分记录
export const getIntegralLogs = params => request.globalRequest(`/aos/distribute/info/getMyScoreList`, 'GET', {
    params: params
})

// 我的优惠券列表
export const getCouponsList = params => request.globalRequest(`/aos/coupon/info/getMyCouponList`, 'GET', {
    params: params
})

// 领券中心优惠券
export const getCouponsCentreLise = (showLoading) => request.globalRequest(`/aos/coupon/info/listBySendType`, 'GET', {
    params: {
        sendType: 1
    }
}, showLoading)

// 领券
export const getCouponsCentreCollect = data => request.globalRequest(`/aos/coupon/info/gantById`, 'POST', {
    data: data
})

// 搜索药品
export const getsearchDrug = params => request.globalRequest(`/aos/api/commodity/appList`, 'GET', {
    params: params
})
